﻿@using CodeFinder.Web.Helper
@model CodeFinder.Common.Entities.Post
<div class="grid_8 alpha blogItem">
    <div class="content">
        <h2 class="title">
            <a href="@Url.Action("Details", "Post", new { id = Model.Id })">
                @Model.Title
            </a>
        </h2>
        <p>@SanitizeHelper.GetBlankText(@Model.Content)</p>
    </div>
    <div class="grid_8 alpha footer">
        <div class="grid_5" style="margin-top:8px;">
            <span class="category">@Model.Caterory.Name</span>
            <span class="date">@Model.CreatedOn.ToShortDateString()</span>
            <span class="comment">@Model.Comments.Count Comments</span>
        </div>
        <div class="grid_2 alpha push_1 readmore">
            @Html.ActionLink("Đọc thêm", "Details", "Post", new { id = Model.Id }, null)
        </div>
    </div>
    <hr />
</div>
